home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Interactive 7
/
PC World Interactive 7.iso
/
program
/
cprog.EXE
/
CC_1.ZIP
/
UNGETC.C
< prev
Wrap
Text File
|
1980-01-10
|
384b
|
11 lines
/*
** push a character back into an input stream
*/
#include <streamio.h>
ungetc(c, stream) char c; int *stream; {
if(stream[_IOB_FLAG]&_UNGET) return EOF;
stream[_IOB_FLAG]=(stream[_IOB_FLAG]&255)|(c<<8)|_UNGET;
return c&255;
}